﻿Public Class DialogBase

    Protected Overridable Sub gbtnSubmit_Click(sender As System.Object, e As System.EventArgs) Handles gbtnSubmit.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
    End Sub


    Protected Overridable Sub gbtnCancel_Click(sender As System.Object, e As System.EventArgs) Handles gbtnCancel.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
    End Sub

    Protected Sub AddControlToFlowLayoutPanel(control As Control)
        Me.flpnl.Controls.Add(control)
    End Sub

End Class